package com.mew.common.rest.information;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class WorldInfoListResponseMessage extends ZebraBaseMessage<WorldInfoListResponseMessage> {
    List<WorldInfoBO> worldInfoList;
    @Override
    public void write(ByteBuf b) {
        writeInt(b,worldInfoList.size());
        for (WorldInfoBO worldInfoBO : worldInfoList) {
            worldInfoBO.write(b);
        }
    }

    @Override
    public WorldInfoListResponseMessage read(ByteBuf byteBuf) {
        return null;
    }
}
